﻿@using Microsoft.AspNet.Identity
@model PaPaPa.Web.Models.Accounts.ModifyPasswordViewModel

@*<p>你已使用以下身份登录: <strong>@User.Identity.GetUserName()</strong>。</p>

    @using (Html.BeginForm("Manage", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
    {
        @Html.AntiForgeryToken()
        <h4>“更改密码”表单</h4>
        <hr />
        @Html.ValidationSummary()
        <div class="form-group">
            @Html.LabelFor(m => m.OldPassword, new { @class = "col-md-2 control-label" })
            <div class="col-md-10">
                @Html.PasswordFor(m => m.OldPassword, new { @class = "form-control" })
            </div>
        </div>
        <div class="form-group">
            @Html.LabelFor(m => m.NewPassword, new { @class = "col-md-2 control-label" })
            <div class="col-md-10">
                @Html.PasswordFor(m => m.NewPassword, new { @class = "form-control" })
            </div>
        </div>
        <div class="form-group">
            @Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-md-2 control-label" })
            <div class="col-md-10">
                @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control" })
            </div>
        </div>

        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="更改密码" class="btn btn-default" />
            </div>
        </div>
    }*@

<div class="panel panel-primary">
    <!-- Default panel contents -->
    <div class="panel-heading"><strong><i class="glyphicon glyphicon-list-alt"></i> 个人中心</strong></div>

    <div class="clearfix">
        <hr />
        <!-- List group -->
        <div class="col-md-3 border-left">
            <ul class="list-group col-sm-offset-0">
                <li class="list-group-item"><a href="/User/Account/ModifyUserBasicData"><i class="glyphicon glyphicon-user"></i> 基本资料</a></li>
                <li class="list-group-item"><a href="javascript:;"><i class="glyphicon glyphicon-wrench"></i> 账号设置</a></li>
                <li class="list-group-item"><a href="javascript:;"><i class="glyphicon glyphicon-cog"></i> 通知设置</a></li>
                <li class="list-group-item"><a href="javascript:;"><i class="glyphicon glyphicon-envelope"></i> 邮件设置</a></li>
                <li class="list-group-item active"><a href="javascript:;"><i class="glyphicon glyphicon-edit"></i> 修改密码</a></li>
            </ul>
        </div>
        <div class="col-sm-15 col-sm-offset-0">
            @using (Html.BeginForm("Manage", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
            {
                @Html.AntiForgeryToken()
                @Html.ValidationSummary()
                <div class="form-group">
                    @Html.LabelFor(m => m.OldPassword, new { @class = "col-md-2 control-label" })
                    <div class="col-md-10">
                        @Html.PasswordFor(m => m.OldPassword, new { @class = "form-control" })
                    </div>
                </div>

                <div class="form-group">
                    @Html.LabelFor(m => m.NewPassword, new { @class = "col-md-2 control-label" })
                    <div class="col-md-10">
                        @Html.PasswordFor(m => m.NewPassword, new { @class = "form-control" })
                    </div>
                </div>

                <div class="form-group">
                    @Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-md-2 control-label" })
                    <div class="col-md-10">
                        @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control" })
                    </div>
                </div>
                
                <div class="form-group">
                    <div class="col-md-offset-2 col-md-10">
                        <input type="submit" value="更改密码" class="btn btn-default" />
                    </div>
                </div>
            }
        </div>
    </div>
</div>